package com.ruoyi.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * 用户常量信息
 * 
 * @author ruoyi
 */
public class UserConstants
{

    public static final Long FJ_MANAGER = 4L;
    public static final Long HW_MANAGER = 9L;
    public static final Long SZ_MANAGER = 10L;
    public static final Long KF_MANAGER = 11L;
    public static final Long XCD_MANAGER = 12L;
    public static final Long YR_MANAGER = 13L;
    public static final Long RY_MANAGER = 14L;
    public static final Long HC_MANAGER = 7L;
    public static final Long JW_MANAGER = 8L;
    public static final Long ZTGG_MANAGER = 15L;
    public static final Long ZCNY_MANAGER = 16L;
    public static final Long ZTJK_MANAGER = 17L;
    public static final Long GD_MANAGER = 18L;
    public static final Long JC_MANAGER = 19L;
    public static final Long ADMIN = 1L;
    public static final Long OPERATION_MANAGER = 5L;
    public static final Long FINANCE_MANAGER = 6L;

    public static final List<Long> SECTOR_MANAGER_IDS = Arrays.asList(
            FJ_MANAGER, HW_MANAGER, SZ_MANAGER, KF_MANAGER, XCD_MANAGER,
            YR_MANAGER, RY_MANAGER, HC_MANAGER, JW_MANAGER, ZTGG_MANAGER,
            ZCNY_MANAGER, ZTJK_MANAGER, GD_MANAGER, JC_MANAGER, ADMIN,
            OPERATION_MANAGER, FINANCE_MANAGER
    );

    public static final List<Long> MAIN_MANAGER_IDS = Arrays.asList(
             ADMIN, OPERATION_MANAGER, FINANCE_MANAGER
    );

    public static final Integer FJ_AREA_ID = 3;
    public static final Integer HW_AREA_ID = 4;
    public static final Integer SZ_AREA_ID = 5;
    public static final Integer KF_AREA_ID = 6;
    public static final Integer XCD_AREA_ID = 7;
    public static final Integer YR_AREA_ID = 8;
    public static final Long FJ_FIANCE = 3L;
    public static final Long FJ_BUDGETER = 2L;
    public static final Long HW_FIANCE = 20L;
    public static final Long HW_BUDGETER = 21L;
    public static final Long SZ_FIANCE = 22L;
    public static final Long SZ_BUDGETER = 23L;
    public static final Long KF_FIANCE = 24L;
    public static final Long KF_BUDGETER = 25L;
    public static final Long XCD_FIANCE = 26L;
    public static final Long XCD_BUDGETER = 27L;
    public static final Long YR_FIANCE = 28L;
    public static final Long YR_BUDGETER = 29L;

    /**
     * 平台内系统用户的唯一标志
     */
    public static final String SYS_USER = "SYS_USER";

    /** 正常状态 */
    public static final String NORMAL = "0";

    /** 异常状态 */
    public static final String EXCEPTION = "1";

    /** 用户封禁状态 */
    public static final String USER_DISABLE = "1";

    /** 角色封禁状态 */
    public static final String ROLE_DISABLE = "1";

    /** 部门正常状态 */
    public static final String DEPT_NORMAL = "0";

    /** 部门停用状态 */
    public static final String DEPT_DISABLE = "1";

    /** 字典正常状态 */
    public static final String DICT_NORMAL = "0";

    /** 是否为系统默认（是） */
    public static final String YES = "Y";

    /** 是否菜单外链（是） */
    public static final String YES_FRAME = "0";

    /** 是否菜单外链（否） */
    public static final String NO_FRAME = "1";

    /** 菜单类型（目录） */
    public static final String TYPE_DIR = "M";

    /** 菜单类型（菜单） */
    public static final String TYPE_MENU = "C";

    /** 菜单类型（按钮） */
    public static final String TYPE_BUTTON = "F";

    /** Layout组件标识 */
    public final static String LAYOUT = "Layout";
    
    /** ParentView组件标识 */
    public final static String PARENT_VIEW = "ParentView";

    /** InnerLink组件标识 */
    public final static String INNER_LINK = "InnerLink";

    /** 校验是否唯一的返回标识 */
    public final static boolean UNIQUE = true;
    public final static boolean NOT_UNIQUE = false;

    /**
     * 用户名长度限制
     */
    public static final int USERNAME_MIN_LENGTH = 2;
    public static final int USERNAME_MAX_LENGTH = 20;

    /**
     * 密码长度限制
     */
    public static final int PASSWORD_MIN_LENGTH = 5;
    public static final int PASSWORD_MAX_LENGTH = 20;
}
